# $NetBSD: Makefile,v 1.10 2013/01/20 22:35:34 schnoebe Exp $
#

DISTNAME=	avelsieve-1.9.7
PKGNAME=	squirrelmail-${DISTNAME}
CATEGORIES=	mail
MASTER_SITES=	http://www.squirrelmail.org/plugins/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.squirrelmail.org/
COMMENT=	Sieve Script editing plugin for SquirrelMail
LICENSE=	gnu-gpl-v2

NO_CONFIGURE=	yes

WRKSRC=		${WRKDIR}
USE_TOOLS+=	tar

SMDIR=			${PREFIX}/share/squirrelmail
MESSAGE_SUBST+=		SMDIR=${SMDIR}

do-build:
	cd ${WRKDIR} && \
	    ${FIND} . \( -name '*.bak' -o -name '.cvsignore' \) \
		-print | xargs rm

do-install:
	${MKDIR} ${DESTDIR}${SMDIR}/plugins
	cd ${WRKDIR} && ${TAR} -cf - ${DISTNAME:C/-.*$//} | \
		${TAR} -xf - -C ${DESTDIR}${SMDIR}/plugins

.include "../../mail/squirrelmail/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
